package testClasses.misc;

import com.jme3.math.Vector3f;

public class AngleBetweenVectorsTest {

	public float getAngleBetween(Vector3f vec1, Vector3f vec2) {
		
		return vec1.angleBetween(vec2);
		
	}
	
	
	
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		AngleBetweenVectorsTest test = new AngleBetweenVectorsTest();
		
		Vector3f vec1 = new Vector3f(1f,0f,0f);
		vec1.normalizeLocal();
		System.out.println(vec1.length());
		
		Vector3f vec2 = new Vector3f(-1f,-1f,0f);
		vec2.normalizeLocal();
		System.out.println(vec2.length());
		
		System.out.println(test.getAngleBetween(vec1, vec2));

	}

}
